Package org.openquark.cal_Cal_Samples_DirectedGraphLibrary

Source Code of org.openquark.cal_Cal_Samples_DirectedGraphLibrary.Equals_Directed_Graph_Ignore_Insertion_Order

package org.openquark.cal_Cal_Samples_DirectedGraphLibrary;

import java.util.Map;
import java.util.WeakHashMap;
import org.openquark.cal.internal.runtime.lecc.RTCAF;
import org.openquark.cal.internal.runtime.lecc.RTExecutionContext;
import org.openquark.cal.internal.runtime.lecc.RTFullApp;
import org.openquark.cal.internal.runtime.lecc.RTFunction;
import org.openquark.cal.internal.runtime.lecc.RTPartialApp;
import org.openquark.cal.internal.runtime.lecc.RTResultFunction;
import org.openquark.cal.internal.runtime.lecc.RTValue;
import org.openquark.cal.runtime.CALExecutorException;

public final class Equals_Directed_Graph_Ignore_Insertion_Order extends RTCAF {
  /**
   * Singleton instance of this class.
   */
  private static final Equals_Directed_Graph_Ignore_Insertion_Order $instance =
    new Equals_Directed_Graph_Ignore_Insertion_Order();

  /*
   * Mappings of execution context to CAF instances.
   */

  /**
   * Execution context -> instance map for equalsDirectedGraphIgnoreInsertionOrder
   */
  private static final Map $instancesMap = new WeakHashMap();

  private Equals_Directed_Graph_Ignore_Insertion_Order() {
  }

  public static final synchronized RTFunction make(RTExecutionContext $ec) {
    RTFunction newInstance =
      ((RTFunction)(java.lang.Object)
        Equals_Directed_Graph_Ignore_Insertion_Order.$instancesMap.get(
          $ec));

    if (newInstance == null) {
        newInstance =
        (new RTFullApp.General._0(
          Equals_Directed_Graph_Ignore_Insertion_Order.$instance));
      Equals_Directed_Graph_Ignore_Insertion_Order.$instancesMap.put(
        $ec,
        newInstance);
    }
    return newInstance;
  }

  public static final synchronized void resetCachedResults(RTExecutionContext $ec) {
    Equals_Directed_Graph_Ignore_Insertion_Order.$instancesMap.remove($ec);
  }

  public final int getArity() {
    return 0;
  }

  public final java.lang.String getModuleName() {
    return "Cal.Samples.DirectedGraphLibrary";
  }

  public final java.lang.String getUnqualifiedName() {
    return "equalsDirectedGraphIgnoreInsertionOrder";
  }

  public final java.lang.String getQualifiedName() {
    return
      "Cal.Samples.DirectedGraphLibrary.equalsDirectedGraphIgnoreInsertionOrder";
  }

  /**
   * f
   * This method implements the function logic of the CAL function Cal.Samples.DirectedGraphLibrary.equalsDirectedGraphIgnoreInsertionOrder
   */
  public final RTValue f(final RTResultFunction $rootNode, final RTExecutionContext $ec) throws CALExecutorException {
    // Release the fields in the root node to open them to garbage collection
    $rootNode.clearMembers();
    // Top level supercombinator logic
    return
      new RTPartialApp._3._1(
        org.openquark.cal_Cal_Utilities_DirectedGraph.Equals_Directed_Graph_Ignore_Insertion_Order.$instance,
        _dict___Eq___Vertex.$instance);
  }

}
TOP

Related Classes of org.openquark.cal_Cal_Samples_DirectedGraphLibrary.Equals_Directed_Graph_Ignore_Insertion_Order

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.